/*
 * @Description: 系统管理-模块路由
 * @Author: xinqiao lxq1990.0716@qq.com
 * @Date: 2025-02-11
 * @LastEditors: Bart 1714877505@qq.com
 * @LastEditTime: 2025-03-19
 */

export default [
  // 运营管理
  {
    path: '/operation',
    name: 'operation',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      // 用户管理
      {
        path: 'user',
        name: 'operation-user',
        redirect: '/operation/user/list',
        children: [
          {
            path: 'list',
            name: 'operation-user-list',
            component: () => import('/@/views/main/operation/user/list.vue'),
          },
        ],
      },
      // 机构管理
      {
        path: 'org',
        name: 'operation-org',
        redirect: '/operation/org/list',
        children: [
          {
            path: 'list',
            name: 'operation-org-list',
            component: () => import('/@/views/main/operation/org/list.vue'),
          },
          {
            path: 'add',
            name: 'operation-org-list-add',
            component: () => import('/@/views/main/operation/org/add.vue'),
          },
          {
            path: 'details',
            name: 'operation-org-list-details',
            component: () => import('/@/views/main/operation/org/details.vue'),
          },
          {
            name: 'catalogLabel',
            path: 'catalogLabel',
            component: () => import('/@/views/main/operation/org/catalogLabel.vue'),
          },
        ],
      },
    ],
  },
  // 平台管理
  {
    path: '/plantform',
    name: 'plantform',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      // 菜单管理
      {
        path: 'menu',
        name: 'plantform-menu',
        component: () => import('/@/views/main/plantform/menu/list.vue'),
      },
      // 接口管理
      {
        path: 'interface',
        name: 'plantform-interface',
        component: () => import('/@/views/main/plantform/interface/list.vue'),
      },
      // 角色管理
      {
        path: 'roles',
        name: 'plantform-roles',
        component: () => import('/@/views/main/plantform/role/list.vue'),
      },
      // 功能权限
      {
        path: 'function',
        name: 'plantform-function',
        redirect: '/plantform/function/list',
        children: [
          {
            path: 'list',
            name: 'plantform-function-list',
            component: () => import('/@/views/main/plantform/function/list.vue'),
          },
        ],
      },
      // 身份权限
      {
        path: 'identity',
        name: 'plantform-identity',
        redirect: '/plantform/identity/list',
        children: [
          {
            path: 'list',
            name: 'plantform-identity-list',
            component: () => import('/@/views/main/plantform/identity/list.vue'),
          },
        ],
      },
    ],
  },
  // 内容管理
  {
    path: '/site-content',
    name: 'site-content',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      // 站点配置
      {
        path: 'home-page',
        name: 'site-content-home-page',
        component: () => import('/@/views/subModule/index.vue'),
      },
      // 资讯栏目
      {
        path: 'content-class',
        name: 'site-content-content-class',
        component: () => import('/@/views/subModule/index.vue'),
      },
      // 资讯管理
      {
        path: 'content-list',
        name: 'site-content-content-list',
        component: () => import('/@/views/subModule/index.vue'),
      },
      // 模板列表
      {
        path: 'template-list',
        name: 'site-content-template-list',
        component: () => import('/@/views/subModule/index.vue'),
      },
      // 模板分类
      {
        path: 'template-class',
        name: 'site-content-template-class',
        component: () => import('/@/views/subModule/index.vue'),
      },
    ],
  },
  // 组织管理
  {
    path: '/org',
    name: 'org',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      // 组织结构
      {
        path: 'dept',
        name: 'org-dept',
        redirect: '/org/dept/list',
        children: [
          {
            path: 'list',
            name: 'org-dept-list',
            component: () => import('/@/views/main/org/dept/list.vue'),
          },
        ],
      },
      // 工单管理
      {
        path: 'workOrder',
        name: 'org-workOrder',
        redirect: '/org/workOrder/list',
        children: [
          {
            path: 'list',
            name: 'org-workOrder-list',
            component: () => import('/@/views/main/org/workOrder/list.vue'),
          },
          {
            path: 'detailOrder',
            name: 'order-detail',
            component: () => import('/@/views/main/org/workOrder/detail.vue'),
          },
        ],
      },
      // 岗位管理
      {
        path: 'position',
        name: 'org-position',
        redirect: '/org/position/list',
        children: [
          {
            path: 'list',
            name: 'org-position-list',
            component: () => import('/@/views/main/org/position/list.vue'),
          },
        ],
      },
      // 组织人员
      {
        path: 'person',
        name: 'org-person',
        redirect: '/org/person/list',
        children: [
          {
            path: 'list',
            name: 'org-person-list',
            component: () => import('/@/views/main/org/person/list.vue'),
          },
        ],
      },
    ],
  },
  // 开放平台
  {
    path: '/publicPlatform',
    name: 'public-platform',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      // 服务管理
      {
        path: 'serve',
        name: 'public-platform-serve',
        redirect: '/publicPlatform/serve/index',
        children: [
          {
            path: 'index',
            name: 'public-platform-serve-index',
            component: () => import('/@/views/main/publicPlatform/serve/index.vue'),
          },
          {
            path: 'api',
            name: 'public-platform-serve-api',
            component: () => import('/@/views/main/publicPlatform/api/index.vue'),
          },
        ],
      },
      // 订阅组管理
      {
        path: 'apply',
        name: 'public-platform-apply',
        component: () => import('/@/views/main/publicPlatform/apply/index.vue'),
      },
      // 服务商管理
      {
        path: 'provider',
        name: 'public-platform-provider',
        component: () => import('/@/views/main/publicPlatform/provider/index.vue'),
      },
      // 接口访问日志
      {
        path: 'access-log',
        name: 'public-platform-accessLog',
        component: () => import('/@/views/main/publicPlatform/accessLog/index.vue'),
      },
      // 接口实时统计
      {
        path: 'realtime-access',
        name: 'public-platform-realtime-access',
        component: () => import('/@/views/main/publicPlatform/realtimeAccess/index.vue'),
      },
      // 接口访问统计
      {
        path: 'access-statistic',
        name: 'public-platform-access-statistic',
        component: () => import('/@/views/main/publicPlatform/accessStatistics/index.vue'),
      },
    ],
  },
  // 工单维护
  {
    path: '/orderMaintenance',
    name: 'order-maintenance',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      // 工单类型维护
      {
        path: 'type',
        name: 'order-maintenance-type',
        redirect: '/orderMaintenance/type/index',
        children: [
          {
            path: 'index',
            name: 'orderMaintenance-type-index',
            component: () => import('/@/views/main/orderMaintenance/type-maintenance/index.vue'),
          },
          {
            path: 'form-settings',
            name: 'orderMaintenance-type-form-settings',
            component: () => import('/@/views/subModule/index.vue'),
          },
          {
            path: 'process-config',
            name: 'orderMaintenance-type-process-config',
            component: () => import('/@/views/subModule/index.vue'),
          },
        ],
      },
    ],
  },
  // 积分流水
  {
    path: '/integral-flow',
    name: 'integral-flow',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      // 积分流水列表
      {
        path: 'list',
        name: 'integral-flow-list',
        component: () => import('/@/views/main/integral/integralFlow/list.vue'),
      },
    ],
  },
]
